#ifndef WALLOPENING_H
#define WALLOPENING_H

#include "Model.h"

namespace Model
{
    
class Edge;

class WallOpening
{
    friend class boost::serialization::access;
    
public:
    WallOpening();
    WallOpening(Model::Edge* edge, double position);
    
    Model::Edge* edge();
    
    double position();
    void setPosition(double p);

private:
    template<class Archive> 
    void serialize(Archive &ar, const unsigned int version)
    {
        ar & NVP(_edge) & NVP(_position);
    }
    
    Model::Edge* _edge;
    double _position;
};

}

#endif // WALLOPENING_H
